package com.example.demo.mapper;


import com.example.demo.entiy.Categories;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoriesMapper {
    public List<Categories> getAllCategoriesList();

    public int getIdByAidAndCid(Integer articleId,Integer categoriesId);

    public int updateCategoriesBuId(Integer categoriesId,Integer id);

    public int insertCategories(Integer articleId,Integer categoriesId);

    public int deleteByArticleId(Integer articleId);
}
